#include "Comm.hpp"
#include <iostream>

using namespace std;

int main()
{
    key_t key=GetShmKey();
    cout<<"key:"<<toHex(key)<<endl;

    int shmid=CreatShmId(key,shmsize,IPC_CREAT | IPC_EXCL | 0666);
    cout<<"shmid:"<<shmid<<endl;
    return 0;
}